<template>
  <div id="toast" class="toast_bg" @click="clickEvent">
    <a>{{errorMsg}}</a>
  </div>
</template>

<script>
  export default {
    name: 'toast-component',
    props: ['errorMsg', 'clickEvent', 'showTime']
  }


</script>

<style scoped>
  .toast_bg {
    background-color: palevioletred;
    border-style: outset;
    border-width: 5px;
    border-color: brown;
  }

  a {
    color: white;
    font-size: 20px;
  }
</style>
